package automatyzacjaPageObject;

import java.util.concurrent.TimeUnit;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public abstract class SeleniumBase {

	protected static final String userName="admin";
	protected static final String passwd="password";
	protected static WebDriver driver;
	
	@BeforeClass
	public static void setUp() throws Exception {
		driver = new FirefoxDriver();
		driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
		
	}
	
	@AfterClass
	public static void tearDown() throws Exception {
		driver.quit();
	}
	@After
	public void clearCookies() throws Exception {
		driver.manage().deleteAllCookies();
	}

}
 